Skip to content

fix: Multiple improvements + docs update #698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 4, 2021
Merged

Conversation

krizzu
Copy link
Member

@krizzu krizzu commented Oct 25, 2021

Summary

Sorry for pushing it into one PR. Got a couple of fixes/improvements coming:

Fixed the issue where multiGet did not propagate errors correctly, meaning they were just ignored. #634

This also changes the way it handles the error from original design - previously, if we'd call many multiGet for different keys, they'll be batched into one native call. If any of them failed, the rest of them fail too, but, only the failed one will get the error message, while the rest will be resolved as undefined values, creating false negatives. This is now changed, so that once one multiGet fails, every other batched call will throw the same error.

Bumped the dependencies for Next storage (Kotlin, Room, Coroutines). #684

I tried to get everything to the latest version. Turns out, Room, with version 2.4.0 (where Apple M1 support is fixed) needs also increased compileSdk version bumped to 31 (latest one). It'd be bad for a library to dictate this version, so instead hardcoding it to 2.4.0, I made it 2.3.0. However, I added a feature flag, so that developer can set this version manually. (cc @Daavidaviid)

Updated documentation

Since we had a few issues raised about size limits, I added a section in our documentation about it.

@krizzu krizzu requested a review from tido64 October 25, 2021 20:54
@krizzu krizzu requested a review from tido64 November 2, 2021 15:44
@krizzu
Copy link
Member Author

krizzu commented Nov 2, 2021

It's ready for re-review. I haven't touch the code regarding error handling, since it handles all platforms equally. If you'd rather not throw the same error for every batched multiGet call, let me know.

Copy link
Member

@tido64 tido64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a single nit. Looks good otherwise.

@krizzu krizzu force-pushed the android-improvements branch from cfd7639 to dab59bc Compare November 4, 2021 10:14
@krizzu krizzu merged commit fc34bfa into master Nov 4, 2021
@krizzu krizzu deleted the android-improvements branch November 4, 2021 17:09
@krizzu
Copy link
Member Author

krizzu commented Nov 4, 2021

🎉 This PR is included in version 1.15.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@schmod
Copy link

schmod commented Feb 15, 2022

Where are you seeing that Room 2.4.0 requires compileSdk 31?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants